package com.hj.authority.feign.fallback;

import com.hj.authority.feign.RemoteStorageService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * @author hj
 * @Date 2023/5/20
 * @Description:
 */
@Slf4j
@Component
public class RemoteStorageServiceFactory implements FallbackFactory<RemoteStorageService> {


    @Override
    public RemoteStorageService create(Throwable cause) {
        log.warn("调用RemoteStorageService异常了哦:{}", cause.getMessage());
        return null;
    }


}
